xen/arm: smmuv3: Move definitions to a header
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Tue, 11 Jan 2022 12:33:43 +0000 (12:33 +0000)
committerJulien Grall <jgrall@amazon.com>
Tue, 6 Sep 2022 16:43:22 +0000 (17:43 +0100)
commit19f609249a185cdc43132e4496bcfd96e371f293
treed440c4e748c8fa4ff8c9b12609d37c8c8c70b328
parent56995f06fe9f4f253377189f6fd3f5ddfe3ce881
xen/arm: smmuv3: Move definitions to a header

Backport Linux commit e881e7839fba. Also, move Xen related struct
definition to header to get it compiled.

Allow sharing structure definitions with the upcoming SVA support for
Arm SMMUv3, by moving them to a separate header. We could surgically
extract only what is needed but keeping all definitions in one place
looks nicer.

Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20200918101852.582559-8-jean-philippe@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
Origin: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git e881e7839fba
Signed-off-by: Rahul Singh <rahul.singh@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/drivers/passthrough/arm/smmu-v3.c
xen/drivers/passthrough/arm/smmu-v3.h [new file with mode: 0644]